package com.bdilab.iot.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author WangNing
 * @version 1.0
 * @date 2020/8/1 12:40
 * 操作等级
 */
@Getter
public enum OperationType {
    SELECT(0, "查询"),DELETE(1, "删除"),UPDATE(2,"更新"),INSERT(3,"添加");

    @EnumValue
    private Integer code;

    private String name;

    OperationType(int code, String name){
        this.code = code;
        this.name = name;
    }

}
